package chuishop.yiqimaicai.service.Impl;

import chuishop.yiqimaicai.mapper.Order_headerMapper;
import chuishop.yiqimaicai.pojo.Order_header;
import chuishop.yiqimaicai.service.Order_headerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class Order_headerImpl implements Order_headerService {
    //
    @Autowired
    private Order_headerMapper order_headerMapper;
    @Override
    public List<Order_header> findAllOrder_header() {
        return order_headerMapper.findAllOrder_header();
    }

    @Override
    public List<Order_header> selectOrder_header(String input) {
        return order_headerMapper.selectOrder_header(input);
    }

    @Override
    public List<Order_header> selectOrder_headerPhone() {
        return order_headerMapper.selectOrder_headerPhone();
    }

    @Override
    public boolean addOrder_header(Order_header order_header) {
        return order_headerMapper.addOrder_header(order_header)>0;
    }

    @Override
    public boolean deleteOrder_header(String[] ids) {
        return order_headerMapper.deleteOrder_header(ids)>0;
    }

    @Override
    public boolean updateOrder_header(Order_header order_header) {
        return order_headerMapper.updateOrder_header(order_header)>0;
    }
}
